<%@page import="Filter.DAO"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    String product_id=request.getParameter("product_id");
    String product_name=request.getParameter("product_name");
    String img_url=request.getParameter("img_url");
    String product_price=request.getParameter("product_price");
    String product_stock=request.getParameter("product_stock");
    String sql="UPDATE product SET product_name=?,img_url=?,product_price=?,product_stock=? where product_id=?";
    String param[]={product_name,img_url,product_price,product_stock,product_id};
    new DAO().modify(sql, param);
    
%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        修改成功<br>
        <a href="ProductManagement.jsp">back</a>
    </body>
</html>
